export const routes = [
    {
      path: "/home",
      name: "Home",
      component: () => import("@/view/Home/index.vue"),
      children: [
        {
          path: "/list/:name",
          name: "TopNav",
          component: () => import("@/components/topNav/indev.vue"),
        },
        {
          path:"/list",
          name:"HomeList",
          component:()=>import('@/view/Home/homeList/index.vue')
        },
       
      ],
    },
    {
      path:"/ranking",
      name:"Ranking",
      component:()=>import("@/view/Home/Ranking/index.vue"),
    },
    {
      path:"/detail/:id",
      name:"Detail",
      component:()=>import("@/view/Classes/index.vue"),
    },
 
    {
      path: "/",
      redirect: "/list",
    },
    //任意路由的配置,必须放在路由表的最后
    {
      path: "/:pathMatch(.*)*",
      component: () => import("../view/NotFound/index.vue"),
    },
  ];
